import {queryLog} from '@/services/auditLog/clipLog';

export default {
  namespace: 'cliplogModel',

  state: {
    // 列表数据
    data: {
      dataList: [],
      pageNum: 0,
      pageSize: 0,
      totalCount: 0,
    },

    queryForm: {},

  },

  effects: {
    * queryList({payload}, {call, put}) {
      const response = yield call(queryLog, payload);
      yield put({
        type: 'save',
        payload: response,
      });
    },
  },

  reducers: {
    save(state, action) {
      return {
        ...state,
        data: action.payload.data,
      };
    },
  },
};
